package com.naizhuai.ui.testunit;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import com.naizhuai.R;
import com.naizhuai.ui.BaseActivity;
import com.naizhuai.ui.mianbusiness.action.ActionMainLazyFragment;
import com.naizhuai.ui.mianbusiness.target.TargetMainLazyFragment;

/**
 * 测试
 * Created by code_han on 2018/3/12.
 */

public class TestFragmentActivity extends BaseActivity {

    @Override
    public int getLayoutId() {
        return R.layout.activity_test_fragment;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        FragmentManager manager = getSupportFragmentManager();
        FragmentTransaction transaction = manager.beginTransaction();
        transaction.add(R.id.content, ActionMainLazyFragment.newInstance(), "");
        transaction.commitAllowingStateLoss();

    }
}
